<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php echo $this->breadCrumbs();?>
  </div>
  
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/layout.png" alt="" /> <?php echo $_['heading_title']; ?></h1>
    </div>
	
    <div class="content">
      <form action="" method="post" enctype="multipart/form-data" id="form">
        <table class="list">
          <thead>
            <tr>
              <td class="left"><?php echo $_['column_name']; ?></td>
			  <td class="left"><?php echo $_['column_author']; ?></td>
			  <td class="left"><?php echo $_['column_description']; ?></td>
              <td class="right"><?php echo $_['column_action']; ?></td>
            </tr>
          </thead>
          <tbody>
            <?php if ($templates) { ?>
            <?php foreach ($templates as $theme => $template) { ?>
            <tr onmouseover="this.className='on';" onmouseout="this.className='';">
              <td class="left"><?php echo $template['name']; ?></td>
			  <td class="left">
			  <?php if (isset($template['url'])) { ?>
			  <a href="<?php echo $template['url'];?>" target="_blank">
				<?php echo $template['author']; ?>
			  </a>
			  <?php } else { ?>
				<?php echo isset($template['author']) ?  $template['author'] : ''; ?>
			  <?php } ?>
			  </td>
			  <td class="left"><?php echo isset($template['description']) ? $template['description'] : ''; ?></td>
              <td class="right">
				<?php if ($template['configurable']) { ?>
				[<a href="<?php echo UA('design/theme/setting', 'theme=' . $theme);?>"><?php echo $_['text_setting']?></a>]
				<?php } ?>
				[<a href="<?php echo UA('design/theme/browse', 'theme=' . $theme);?>"><?php echo $_['text_browse']?></a>]
              </td>
            </tr>
            <?php } ?>
            <?php } else { ?>
            <tr>
              <td class="center" colspan="4"><?php echo $_['text_no_results']; ?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>